<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="cn.ac.cintcm.dataconverge.researcher.domain.Comment,java.util.*,com.hs.core.page.PageUtil,com.hs.core.utils.*" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String configStr1 = (String)request.getAttribute("configStr1");
String configStr2 = (String)request.getAttribute("configStr2");
String configStr3 = (String)request.getAttribute("configStr3");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">    
     <link href="<%=basePath%>index/Themes/com/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="<%=path %>/js/My97DatePicker/WdatePicker.js"></script>
      <script src="<%=basePath%>js/common.js" language="javascript" type="text/javascript"></script>
      	<link rel="stylesheet" type="text/css" href="<%=basePath %>js/resources/css/ext-all.css" /> 
	<script language="javascript" src="<%=path %>/js/adapter/ext/ext-base.js"></script>
	<script language="javascript" src="<%=path %>/js/ext-all.js"></script> 
	    <script type="text/javascript" src="<%=path %>/js/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=path %>/js/mem.js"></script>
    <script language="javascript">
    	 function saveData(){
    	    var config1 = searchform.configStr1.value;
    	    var config2 = searchform.configStr2.value;
    	    //var config3 = searchform.configStr3.value;
    	    if(isNull(config1)){
    	      alert("输入不能为空");
    	      searchform.configStr1.focus();
    	      return;
    	    }
    	    if(isNull(config2)){
    	      alert("输入不能为空");
    	      searchform.configStr2.focus();
    	      return;
    	    }
    	    /**if(isNull(config3)){
    	      alert("输入不能为空");
    	      searchform.configStr3.focus();
    	      return;
    	    }*/
    	    searchform.submit();
    	 
    	 }
    </script>
  </head>
 
<body  >
 <form name="searchform" action="systemDict.htm?action=propSave" method="post">
      <div class="r_rtm_tb_mg1">
        <div class="r_rtm_tb1">
            <img src="<%=basePath%>index/Themes/com/idt_tb_pass.gif" />&nbsp;中期检查参数设置
        </div>
    </div>
   
     <table cellspacing="2" align="center" cellpadding="0" width="100%" class="idt_item_mg" id="Table2">
     <tbody>
        <tr>
		    <td class="fim_l" align="right" width="30%"> 跨年度课题中期检查提前提醒时间:</td>
            <td class="fim_r">
                <input type="text" class="com_textbox" style="width:50%" name="configStr1" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" value="<%=configStr1%>"> (单位：天)
            </td> 
        </tr>
        <tr>
		    <td class="fim_l" align="right"> 非跨年度课题中期检查提前提醒时间:</td>
            <td class="fim_r">
                <input type="text" class="com_textbox" style="width:50%" name="configStr2" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" value="<%=configStr2%>"> (单位：天)
            </td> 
        </tr>
        <!--  tr>
		    <td class="fim_l" align="right"> 非跨年度课题中期检查周期:</td>
            <td class="fim_r">
                <input type="text" class="com_textbox" style="width:50%" name="configStr3" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" value="<%=configStr3%>"> (单位：月)
            </td> 
        </tr-->
         
        
        </tbody>
    </table> 
        <div class="dg_pagerstyle" align="right">
        <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
                                    <tr>
                                        <td align="center">
                                            <input  class="com_btn2" id="Button1" name="save" type="button" onclick="saveData();" value="保存"> 
                                        </td>
                                    </tr>
                                </table>
        </div> 
    </form>
     <table cellspacing="2" align="center" cellpadding="0" width="100%" class="idt_item_mg" id="Table2">
     <tbody>
        <tr>
		    <td class="fim_l" align="left">
		    <div id="layout-borderlayout-main">
 </div>
 <div id="av">
 </div>
 <div id="ava">
 </div></td>
             
        </tr>
        
        </tbody>
    </table> 
  </body>
</html>
